import platform

""" 系统平台信息
"""
platform.platform()
'Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35'

platform.release()
'5.15.153.1-microsoft-standard-WSL2'

platform.system()
'Linux'

platform.machine()
'x86_64'
platform.processor()
'x86_64'

platform.uname()
# uname_result(system='Linux', node='DESKTOP-JS4HG8H', release='5.15.153.1-microsoft-standard-WSL2', version='#1 SMP Fri Mar 29 23:14:13 UTC 2024', machine='x86_64')
platform.libc_ver()
('glibc', '2.35')

platform.architecture()
('64bit', 'ELF')

platform.node()
'DESKTOP-JS4HG8H'


""" python 版本信息
"""
platform.python_build()
('main', 'Mar 22 2024 16:50:05')

platform.python_compiler()
'GCC 11.4.0'
platform.python_branch()
''
platform.python_revision()
''
platform.python_version()
'3.10.12'
